#include <gba.h>
#include <stdio.h>
#include <stdlib.h>

#include "mbclient.h"

int main(void) {
	irqInit();
	irqEnable(IRQ_VBLANK);

	consoleInit( 0 , 4 , 0, NULL , 0 , 15);

	BG_COLORS[0]=RGB8(58,110,165);
	BG_COLORS[241]=RGB5(31,31,31);

	SetMode(MODE_0 | BG0_ON);

	printf("linktest\n");
	printf("Press A to continue\n");

	while (1) {
		VBlankIntrWait();
		scanKeys();
		int keys = keysDown();
		if(keys & KEY_A) {
			break;
		}
	}

	int result = SendMBImageToClient();

	printf("result: %u\n", result);

	while (1) {
		VBlankIntrWait();
	}
}


